import { Model } from '../core';
import { DataService } from '../core/DataService';

export interface RoleAccess extends Model {
	roleId: string;
	accessId: string;
}

class RoleAccessService extends DataService<RoleAccessService, RoleAccess> {
	protected create(): RoleAccessService {
		return this.initTokenInstance('role-access') as RoleAccessService;
	}
}

export const roleAccessService = new RoleAccessService();
